import axios from 'axios'
const service = axios.create({
    baseURL: import.meta.env.VITE_APP_BASE_API,
    timeout: 5000
})



// 响应拦截器
service.interceptors.response.use((response) => {
    const { data,status } = response.data
    if (status === 200) {
        return data.result
    } else {
        // 请求失败
    }
})


export default service